﻿using FluentNHibernate.Mapping;
using SimpleScrum.Core.Entities;

namespace SimpleScrum.Core.Mappings
{
    public class WebpagesMembershipMap : ClassMap<WebpagesMembership>
    {
        public WebpagesMembershipMap()
        {
            Table("webpages_Membership");
            //LazyLoad();
            References(x => x.UserId).Column("UserId");
            Id(x => x.CreatedDate).Column("CreateDate");
            Map(x => x.ConfirmationToken).Column("ConfirmationToken");
            Map(x => x.IsConfirmed).Column("IsConfirmed");
            Map(x => x.LastPasswordFailureDate).Column("LastPasswordFailureDate");
            Map(x => x.Password).Column("Password");
            Map(x => x.PasswordChangedDate).Column("PasswordChangedDate");
            Map(x => x.PasswordSalt).Column("PasswordSalt");
            Map(x => x.PasswordVerificationToken).Column("PasswordVerificationToken");
            Map(x => x.PasswordVerificationTokenExpirationDate).Column("PasswordVerificationTokenExpirationDate");
            //HasMany(x => x.Lists).KeyColumn("UserId");
        }
    }
}